Skip to content

chore: provide bazel-tools from devcontainer#511

Open
AlexanderLanin wants to merge 1 commit intomainfrom
tools
Open

chore: provide bazel-tools from devcontainer#511
AlexanderLanin wants to merge 1 commit intomainfrom
tools

Conversation

@AlexanderLanin
Copy link
Copy Markdown
Member

@AlexanderLanin AlexanderLanin commented Apr 23, 2026

Features:

  • tools/run_tool.sh as common way of running tools via devcontainer or via bazel
  • pre-commit adapted to support both environments AND be (more) hermetic

Notes:

  • note the slight differences in command line (-- in bazel)
  • all measurements with warm caches and ~5 repeats

run via bazel:

$ time bazel run //:actionlint -- --version
INFO: Invocation ID: c29f8fd8-7a15-4bf7-813c-332637024033
INFO: Analyzed target //:actionlint (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target @@rules_multitool++multitool+multitool//tools/actionlint:cwd up-to-date:
  bazel-bin/external/rules_multitool++multitool+multitool/tools/actionlint/cwd
INFO: Elapsed time: 0.132s, Critical Path: 0.00s
INFO: 1 process: 1 action cache hit, 1 internal.
INFO: Build completed successfully, 1 total action
INFO: Running command line: bazel-bin/external/rules_multitool++multitool+multitool/tools/actionlint/cwd <args omitted>
1.7.7
installed by downloading from release page
built with go1.23.4 compiler for linux/amd64

real    0m0.232s

run via abstraction without devcontainer:

$ time tools/run_tool.sh actionlint --version
INFO: Analyzed target @@score_devcontainer+//tools:actionlint (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target @@rules_multitool++multitool+multitool//tools/actionlint:cwd up-to-date:
  bazel-bin/external/rules_multitool++multitool+multitool/tools/actionlint/cwd
INFO: Elapsed time: 0.183s, Critical Path: 0.00s
INFO: 1 process: 1 action cache hit, 1 internal.
INFO: Build completed successfully, 1 total action
INFO: Running command line: bazel-bin/external/rules_multitool++multitool+multitool/tools/actionlint/cwd <args omitted>
1.7.7
installed by downloading from release page
built with go1.23.4 compiler for linux/amd64

real    0m0.232s

run via abstraction with devcontainer:

$ time tools/run_tool.sh actionlint --version
1.7.7
installed by downloading from release page
built with go1.23.4 compiler for linux/amd64

real    0m0.005s

run directly in devcontainer

$ time actionlint --version
1.7.7
installed by downloading from release page
built with go1.23.4 compiler for linux/amd64

real    0m0.004s

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 23, 2026

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run --lockfile_mode=error //src:license-check

Status: ⚠️ Needs Review

Click to expand output
[License Check Output]
Extracting Bazel installation...
Starting local Bazel server (8.4.2) and connecting to it...
INFO: Invocation ID: 45729e2f-c32c-4c0c-b598-92c26474383a
Computing main repo mapping: 
Computing main repo mapping: 
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
WARNING: Target pattern parsing failed.
ERROR: Skipping '//src:license-check': no such target '//src:license-check': target 'license-check' not declared in package 'src' defined by /home/runner/work/docs-as-code/docs-as-code/src/BUILD
ERROR: no such target '//src:license-check': target 'license-check' not declared in package 'src' defined by /home/runner/work/docs-as-code/docs-as-code/src/BUILD
INFO: Elapsed time: 5.517s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target

@github-actions
Copy link
Copy Markdown

The created documentation from the pull request is available at: docu-html

etas-contrib-automation Bot pushed a commit to etas-contrib/score_devcontainer that referenced this pull request Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant